<template>
    <div class="head">
        <span v-if="tigt" @click="$router.back()">&lt; 返回</span>
        <h2>{{text}}</h2>
    </div>
</template>
<script>


export default({
    name:"Head",
    props: {
        text:String,
        tigt:String
    },
})
</script>
<style lang="scss" scoped>
    span{
        font-size: 19px;
        display: inline-block;
        cursor: pointer;
    }
    h2{
        margin-left: 10px;
        display: inline-block;
    }
</style>